import 'package:drm/base/qx_entity.dart';
import 'package:drm/base/user.dart';
import 'package:drm/http/action.dart';
import 'package:drm/http/date_result.dart';
import 'package:drm/http/http_url.dart';

abstract class MainEvent {}


class NullEvent {

}


class MainGetQxEvent extends MainEvent {
  User user;

  MainGetQxEvent(this.user) : super();

  Future<DateResult<List<QxEntity>>> getQxList() async {
    Map<String, String> data = {'UserId': '${user.userId}'};
    print('准备请求');

    return await ActionDo.getDate<QxEntity>(data,postUrl: AppUrl.getQx());

//    Result result = await DioUtil.post(AppUrl.getQx(), data:params) ;

  }
}
